using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Pig : Destructiable
{
    public int score = 3000;//默认分数
    
    public override void Die()
    {
        base.Die();
        GameManager.Instance.OnPigDead();
        ScoreManager.Instance.ShowScore(transform.position, score);//显示分数
    }
    
    protected override void PlayAudioCollision()
    {
        AudioManager.Instance.PlayPigCollision(transform.position);//播放小猪撞击音效
    }

}
